<?php
session_save_path("/home/users/web/b2423/ipg.projectffcom/cgi-bin/tmp");
session_start();
$num_teams = $_SESSION['num_teams'];
?>

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Invite Friends</title>

	<style type="text/css">
	span.link {
    	position: relative;
}

span.link a span {
    	display: none;
}

span.link a:hover {
    	font-size: 99%;
}

span.link a:hover span { 
    display: block; 
    position: absolute; 
    margin-top: 10px; 
    margin-left: -10px; 
	width: 175px; 
	padding: 5px; 
    z-index: 100; 
    color: #000000; 
    background: #808080; 
    font: 12px "Arial", sans-serif;
    text-align: left; 
    text-decoration: none;
}
	 
  .main{
	width: 900px;
	min-height:1000px;
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 100px;
	margin-left: auto;
	border: 3px #000 solid;
	border-radius: 1em;
	-moz-border-radius: 1em;
	-webkit-border-radius: 1em;
}
  
  .cells{
	border-bottom-width: thin;
	border-bottom-style: solid;
	border-bottom-color: #FFF;
	color: #FFF;
	width:auto;
	padding-left:15px;
}
  .data_table{
	background-color: #000;
	-moz-border-radius: 10px;
	-webkit-border-radius: 25px;
	border: 1px solid #000;
	padding: 0px;
	color:#FFF;
	height:400px;
}
	#tabmenu {
	color: #000;
	z-index: 1;
	padding-left: 50px;
	width:400px;
	margin-top: 12px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 260px;
	padding-top: 0px;
	padding-right: 0px;
	padding-bottom: 0px;
}
 
	#tabmenu li {
		display: inline;
		overflow: hidden;
		list-style-type: none; }
 
	#tabmenu a, a.active {
		color: #000;
		background: #bbccff;
		font: bold 1em "Trebuchet MS", Arial, sans-serif;
		border: 2px solid black;
		padding: 2px 5px 0px 5px;
		margin: 0;
		text-decoration: none; }
 
	#tabmenu a.active {
		background: #bbccff;
		border-bottom: 3px solid #bbccff; }
 
	#tabmenu a:hover {
		color: #000;
		background: #808080; }

	#tabmenu a.active:hover {
		background: #bbccff;
		color: #000; }
 
	#content {
	background: #bbccff;
	border-top: none;
	z-index: 2;
	width: 900px;
}
	
	 .left_menu_cells {
	border-bottom-width: medium;
	border-bottom-style: solid;
	border-bottom-color: #FFF;
	color: #FFF;
	text-align: center;
}
.left_menu {
	background-color: #000;
	-moz-border-radius: 10px;
	-webkit-border-radius: 25px;
	border: 1px solid #000;
	padding: 10px;
	margin-top: 0px;
	margin-right: 80px;
	margin-bottom: 15px;
	margin-left: 80px;
	height: 400px;
}

#logoff{
	text-align:center;
	padding: 15px;
	color:#FFF;
}
 
	</style> 
</head> 
 
<body bgcolor="#bbccff"> 
<div class="main">
<div id="title" align="center"><img src="../images/title.png" width="431" height="114" align="middle"></div>

<ul id="tabmenu" style="height:23px"> 
	<li><a  href="create-tab1.html">Settings</a></li> 
	<li><a class="active" href="create-tab2.php">Invite Friends</a></li> 
</ul> 

<div id="content"> 
 <table class="left_menu" align="left">
 <tr>
<td class="left_menu_cells" colspan="3"><a href="main.php" style="text-decoration:none; color:#FFF">Home</a></td>
</tr>

<tr>
<td class="left_menu_cells" colspan="3"><a href="create.html" style="text-decoration:none; color:#FFF">Create a League</a></td>
</tr>

<tr>
<td class="left_menu_cells" colspan="3">View Leagues</td>
</tr>

<tr>
<td class="left_menu_cells" colspan="3">Find Friends</td>
</tr>

<tr>
<td height="48" colspan="3" id="logoff"><font style="text-decoration:none; color:#FFF">Log-off</font></td>
</tr>

</table>
<form action="createLeague.php" method="post">

<table width="580" class="data_table">
<tr>
	<td colspan="2" height="30" class="cells">Email Addresses (separated by commas):</td>
 
</tr>
 
<?php
	$j = $_SESSION['num_teams'];
	
	for($i = 1; $i <= $j; $i++)
    {
     	echo "<tr style='width:5px;'>";
		echo "<td style='width:5px;padding-left:15px;'>Email ".$i.": <input name='email".$i."' type='email'/> </td>";
		echo "</tr>";
    }
?>
  
<tr>

</tr>
<tr>
<td>
<?php
          require_once('recaptchalib.php');
          $publickey = "6LfeJsUSAAAAAOPSqqLY0mO057WB4x1DaHxCVUCS"; // you got this from the signup page
          echo recaptcha_get_html($publickey);
?>
</td>
</tr>

<tr>
	<td height="106" style="padding-left:15px; padding-right:10px">
    <p>Message:</p>
    <textarea name="message" rows="5" cols="60" height="50px" width="560">Join my league bitches!
    </textarea>
</td>
</tr>

<tr>
    <td style="padding-left:15px">
    	<input width="50px" type="submit">
    </td>
</tr>
</table>
</form>
</div>
</div>
</html> 